#!/bin/sh
#
# $OpenBSD: lighttpd.rc,v 1.3 2015/07/15 14:59:15 ajacoutot Exp $

daemon="${TRUEPREFIX}/sbin/lighttpd"
daemon_flags="-f ${SYSCONFDIR}/lighttpd.conf"

. /etc/rc.d/rc.subr

rc_reload() {
	pkill -INT -xf "${pexp}"
	${rcexec} "${daemon} ${daemon_flags}" >/dev/null
}

rc_cmd $1
